<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<%@ include file="/commons/kindeditor.jsp" %>
<script type="text/javascript">
    $(function() {
    	//初始化类目选择和图片上传器
		TAOTAO.init({fun:function(node){}});
        $('#insideErrorEditForm').form({
            url : '${path}/admin/insideError/edit',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    parent.$.messager.alert('错误', result.msg, 'error');
                }
            }
        });
    });
</script>
<div style="padding:10px 10px 10px 10px">
        <form id="insideErrorEditForm" method="post" enctype="multipart/form-data">
            <table class="grid">
				<input id="id" name="id" type="hidden" value="${insideError.id}" />
                <tr>
                    <td>用户请求地址:</td>
					<td>
						<input id="ip" name="ip" type="text" placeholder="请输入用户请求地址" class=" easyui-textbox" data-options="required:true"  value="${insideError.ip}" />
					</td>
				</tr>
                <tr>
                    <td>报错误的类:</td>
					<td>
						<input id="eclass" name="eclass" type="text" placeholder="请输入报错误的类" class=" easyui-textbox" data-options="required:true"  value="${insideError.eclass}" />
					</td>
				</tr>
                <tr>
                    <td>报错类的方法:</td>
					<td>
						<input id="emethod" name="emethod" type="text" placeholder="请输入报错类的方法" class=" easyui-textbox" data-options="required:true"  value="${insideError.emethod}" />
					</td>
				</tr>
                <tr>
                    <td>类多少行代码处异常:</td>
					<td>
						<input id="linenumber" name="linenumber" type="text" placeholder="请输入类多少行代码处异常" class=" easyui-textbox" data-options="required:true"  value="${insideError.linenumber}" />
					</td>
				</tr>
                <tr>
                    <td>用户主键:</td>
					<td>
						<input id="huserId" name="huserId" type="text" placeholder="请输入用户主键" class=" easyui-textbox" data-options="required:true"  value="${insideError.huserId}" />
					</td>
				</tr>
                <tr>
                    <td>用户agent:</td>
					<td>
						<input id="agent" name="agent" type="text" placeholder="请输入用户agent" class=" easyui-textbox" data-options="required:true"  value="${insideError.agent}" />
					</td>
				</tr>
                <tr>
                    <td>错误原因:</td>
					<td>
						<input id="cause" name="cause" type="text" placeholder="请输入错误原因" class=" easyui-textbox" data-options="required:true"  value="${insideError.cause}" />
					</td>
				</tr>
                <tr>
                    <td>错误发生时间:</td>
					<td>
						<input id="time" name="time" type="text" placeholder="请输入错误发生时间" class="easyui-datetimebox" readonly="readonly" value="<fmt:formatDate pattern='yyyy-MM-dd HH:mm:ss' value='${insideError.time}'/>"/>
					</td>
				</tr>
                <tr>
                    <td>状态 1正常 0停用:</td>
					<td>
						<select id="status" name="status" class="easyui-combobox" data-options="width:140,height:29,editable:false,panelHeight:'auto'">
							<option value="1">正常</option>
							<option value="0">停用</option>
						</select>
						<script type="text/javascript">
							//下拉框赋值
				       		 $("#status").val('${insideError.status}'); 
						</script>
					</td>
				</tr>
                <tr>
                    <td>创建时间:</td>
					<td>
						<input id="createdTime" name="createdTime" type="text" placeholder="请输入创建时间" class="easyui-datetimebox" readonly="readonly" value="<fmt:formatDate pattern='yyyy-MM-dd HH:mm:ss' value='${insideError.createdTime}'/>"/>
					</td>
				</tr>
                <tr>
                    <td>修改时间:</td>
					<td>
						<input id="updatedTime" name="updatedTime" type="text" placeholder="请输入修改时间" class="easyui-datetimebox" readonly="readonly" value="<fmt:formatDate pattern='yyyy-MM-dd HH:mm:ss' value='${insideError.updatedTime}'/>"/>
					</td>
				</tr>
                <tr>
                    <td>删除时间:</td>
					<td>
						<input id="deletedTime" name="deletedTime" type="text" placeholder="请输入删除时间" class="easyui-datetimebox" readonly="readonly" value="<fmt:formatDate pattern='yyyy-MM-dd HH:mm:ss' value='${insideError.deletedTime}'/>"/>
					</td>
				</tr>
                <tr>
                    <td>编辑人:</td>
					<td>
						<input id="createdEditor" name="createdEditor" type="text" placeholder="请输入编辑人" class=" easyui-textbox" data-options="required:true"  value="${insideError.createdEditor}" />
					</td>
				</tr>
                <tr>
                    <td>更新人:</td>
					<td>
						<input id="updatedEditor" name="updatedEditor" type="text" placeholder="请输入更新人" class=" easyui-textbox" data-options="required:true"  value="${insideError.updatedEditor}" />
					</td>
				</tr>
            </table>
        </form>
    </div>
